<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .line{
            height: 1px;
            background: black;
            margin: 0;
            transform: scaleY(0.5);  /**使用sacleY缩放高度0.5，模拟较细的线 */
            transform-origin: 0 0;   /**设置变换原点为左上角，确保线的位置正确*/
        }
    </style>
</head>
<body>
    <div class="line"></div>
</body>
</html>